﻿<div class = "col-sm-9">
		<img src="<?php echo base_url();?>/public/pictures/top.jpg" class="img-responsive" style = "left:0px;top:0px;height:200px;width:1000px"/>
		<h3>搜索结果&nbsp;&nbsp;&nbsp;<small>(共享的公共文件)</small></h3>
		<hr>
		<table class="table">
			<tr>
				<th>编号</th>
				<th>文件名</th>
				<th>下载码</th>
				<th>文件类型</th>
				<th>上传时间</th>
				<th>设置选项</th>
			</tr>
			<?php
			if(!$search_error){
				echo "<td>".$number++."</td>";
				echo "<td>".$res['filename']."</td>";
				echo "<td>".$res['checknum']."</td>";
				echo "<td>";
				switch($res['filetype']){
					case 0: echo "文本文件";break;
					case 1: echo "图片文件";break;
					case 2: echo "音乐文件";break;
					case 3: echo "视频文件";break;
					case 4: echo "光盘文件";break;
				}
				echo "</td>";
				echo "<td>".date('Y-m-d H:i:s',$res['uptime'])."</td>";
				$url = explode("/",$res['filepath'],3);
				echo "<td><a href = 'http://localhost/".$url[2]."'>下载</a></td>";
			}
			?>
			
		</table>
		<div class = "text-danger"><?php echo $search_error;?></div>
		<hr>
</div>